import Mock from "mockjs";


const data = Mock.mock({
    "list|10": [
        {
            "id|+1": 1,
            "title|1": [
                '订单消息',
                '互动消息',
                '系统消息',
                '飞来飞去'
            ],
            "content": "【消息记录】",
            "time": "@date",
            'img|1': [
                'https://cdn7.axureshop.com/demo2024/2251242/images/%E6%B6%88%E6%81%AF/u2352.svg',
                'https://cdn7.axureshop.com/demo2024/2251242/images/%E6%B6%88%E6%81%AF/u2344.svg',
                'https://cdn7.axureshop.com/demo2024/2251242/images/%E6%B6%88%E6%81%AF/u2323.svg',
                'https://cdn7.axureshop.com/demo2024/2251242/images/%E6%B6%88%E6%81%AF/u2331.svg',
                'https://cdn7.axureshop.com/demo2024/2251242/images/%E6%B6%88%E6%81%AF/u2339.svg'
            ]
        }
    ]
})


Mock.mock('/api/message', 'post', () => {
    return {
        "code": 200,
        message: "数据获取成功",
        data: data.list
    }
})